package com.tocea.formation.tpjuni4;

public class MathImpl implements IMath {

	public int add(int _a, int _b) {
		return _a + _b;
	}

	public int minus(int _a, int _b) {
		return _a - _b;
	}

	public int mult(int _a, int _b) {
		return _a * _b;
	}

	public float div(int _a, int _b) throws Exception {
		if(_b == 0) throw new Exception("Division by zero impossible ! ");
		return _a / _b;
	}
	
}
